from django.contrib import admin

# Register your models here.
from .models import *
admin.site.site_header = "河南师范大学新联学院"
admin.site.site_title = '“十佳学生”网络投票系统'
admin.site.index_title= "后台管理"

class UsersAdmin(admin.ModelAdmin):
    list_per_page = 5
    list_display = ['id','mobile','password','user_name','txt','image_path','vote_num','is_show','create_time']
    list_filter = ['is_show']
    search_fields = ['id','mobile','user_name']

admin.site.register(Users,UsersAdmin)

class SiteAdmin(admin.ModelAdmin):
    list_per_page = 5
    list_display = ['id','uuid','uip','create_time']

admin.site.register(Site,SiteAdmin)